import request from '@/utils/request'

export const getAddressList = (data:any, params:any) => {
	return request({
	    url:'/mall/address/info/list',
	    method:'post',
	    data:data,
	    params:params,
		noLoading:data.noLoading,
	})
}

export const setAddressAdd = (data:any) => {
	return request({
	    url:'/mall/address/info/add',
	    method:'post',
	    data:data
	})
}

//status:0 禁用，1：启动
export const setAddressDel = (data:any) => {
	return request({
	    url:'/mall/address/info/edit',
	    method:'post',
	    data:data
	})
}

export const setAddressEdit = (data:any) => {
	return request({
	    url:'/mall/address/info/edit',
	    method:'post',
	    data:data
	})
}